package cn.xiaoyu.su.service;

import cn.xiaoyu.su.controller.request.TrafficPageRequest;
import cn.xiaoyu.su.model.EventMessage;
import cn.xiaoyu.su.model.TrafficDO;
import cn.xiaoyu.su.vo.TrafficVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ⼆当家⼩D
 * @since 2022-10-27
 */
public interface TrafficService {

    void handleTrafficMessage(EventMessage eventMessage);

    Map<String, Object> pageAvailable(TrafficPageRequest request);

    TrafficVO detail(Long trafficId);

    /**
     * 删除过期流量包
     * @return
     */
    boolean deleteExpiredTraffic();
}
